package cn.xawl.gulimall.auth.feign;

import cn.xawl.common.utils.R;
import cn.xawl.gulimall.auth.vo.UserInfoVo;
import cn.xawl.gulimall.auth.vo.UserLoginVo;
import cn.xawl.gulimall.auth.vo.WeiboUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lh
 * @create 2020-10-31 14:12
 **/
@FeignClient("gulimall-member")
public interface MemberFeign {
    /**
     * member服务注册接口
     * @param member 用户信息对象
     */
    @PostMapping("/member/register")
    R register(@RequestBody UserInfoVo member);

    /**
     * member服务注册接口
     * @param userLogin 用户登录表单对象
     */
    @PostMapping("/member/login")
    R login(@RequestBody UserLoginVo userLogin);

    /**
     * member服务微博登录接口
     * @param weiboUser 微博用户信息对象
     */
    @PostMapping("/member/weibo/login")
    R login(@RequestBody WeiboUser weiboUser);

}
